module.exports = {
  apps: [
    {
      name: 'Maiya-IM-Dev',
      script: './src/server.js',
      watch: true,
      env: {
        NODE_ENV: 'development',
      },
      error_file: './logs/dev-error.log',
      out_file: './logs/dev-out.log',
      merge_logs: true,
    },
    {
      name: 'Maiya-IM',
      script: './src/server.js',
      watch: false,
      env: {
        NODE_ENV: 'production',
      },
      error_file: './logs/prod-error.log',
      out_file: './logs/prod-out.log',
      merge_logs: true,
    },
    {
      name: 'Maiya-IM-Staging',
      script: './src/server.js',
      env: {
        NODE_ENV: 'staging'
      },
      out_file: './logs/staging-out.log',
      error_file: './logs/staging-error.log',
      merge_logs: true
    }
  ],
};